﻿<UserControl x:Class="WorkflowApplicationControls.ToolBarControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <StackPanel Opacity="1" Orientation="Horizontal">
        <StackPanel.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#00FFFFFF" Offset="0"/>
                <GradientStop Color="#CCFFFFFF" Offset="1"/>
            </LinearGradientBrush>
        </StackPanel.Background>
        <Border Visibility="{Binding Path=ShowSaveAsWfl, Converter={StaticResource boolToVisibilityConverter}}" 
                Margin="5,5,0,5" BorderBrush="#FFBFBFBF" BorderThickness="1,1,1,1" CornerRadius="3,3,3,3">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFF3F3F3" Offset="0"/>
                    <GradientStop Color="#FFEBF3F6" Offset="1"/>
                    <GradientStop Color="#FFE7E9EA" Offset="0.714"/>
                    <GradientStop Color="#FFD5DBDE" Offset="0.723"/>
                </LinearGradientBrush>
            </Border.Background>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="17"/>
                </Grid.RowDefinitions>
                <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="1" FontSize="11" Foreground="#FF494949" Text="File" TextWrapping="Wrap"/>
                <StackPanel HorizontalAlignment="Stretch" Orientation="Horizontal" ClipToBounds="False">
                    <Button Name="btnSaveAsWfl" ToolTip="Save As Workflow Link" 
                            AutomationProperties.AutomationId="btnSaveAsWfl" Style="{DynamicResource SaveAsWFButton}" Content="Button" 
                            Margin="10,4,10,4" Command="{Binding Path=SaveAsWorkflowLinkCommand}"/>
                </StackPanel>
            </Grid>
        </Border>
        <Border BorderBrush="#FFBFBFBF" BorderThickness="1,1,1,1" CornerRadius="3,3,3,3" Margin="5,5,0,5">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFF3F3F3" Offset="0"/>
                    <GradientStop Color="#FFEBF3F6" Offset="1"/>
                    <GradientStop Color="#FFE7E9EA" Offset="0.714"/>
                    <GradientStop Color="#FFD5DBDE" Offset="0.723"/>
                </LinearGradientBrush>
            </Border.Background>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="17"/>
                </Grid.RowDefinitions>
                <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="1" FontSize="11" Foreground="#FF494949" 
                           Text="Workflow" TextWrapping="Wrap"/>
                <StackPanel HorizontalAlignment="Stretch" Orientation="Horizontal" ClipToBounds="False">
                    <Button Name="btnPlay" AutomationProperties.AutomationId="btnPlay" Style="{DynamicResource ButtonStylewfPlay}" 
                            Content="Button" Margin="10,4,10,4" ToolTip="Execute"
                            Command="{Binding Path=PlayCommand}"/>
                    <Button Visibility="Collapsed" Name="btnPause" AutomationProperties.AutomationId="btnPause" Style="{DynamicResource ButtonStylewfPause}" 
                            Content="Button" Margin="0,4,10,4" ToolTip="Pause"
                            Command="{Binding Path=PauseCommand}" Opacity="0.3" />
                    <Button Name="btnTerminate" AutomationProperties.AutomationId="btnTerminate" Style="{DynamicResource ButtonStylewfTerminate}"
                            Content="Button" Margin="0,4,10,4" ToolTip="Terminate"
                            Command="{Binding Path=TerminateCommand}"/>
                </StackPanel>
            </Grid>
        </Border>
        <Border Visibility="{Binding Path=ShowConnectionOptions, Converter={StaticResource boolToVisibilityConverter}}"
            BorderBrush="#FFBFBFBF" BorderThickness="1,1,1,1" CornerRadius="3,3,3,3" Margin="5,5,0,5">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFF3F3F3" Offset="0"/>
                    <GradientStop Color="#FFEBF3F6" Offset="1"/>
                    <GradientStop Color="#FFE7E9EA" Offset="0.714"/>
                    <GradientStop Color="#FFD5DBDE" Offset="0.723"/>
                </LinearGradientBrush>
            </Border.Background>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="17"/>
                </Grid.RowDefinitions>
                <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="1" FontSize="11" Foreground="#FF494949" Text="Connection" TextWrapping="Wrap"/>
                <StackPanel HorizontalAlignment="Stretch" Orientation="Horizontal" ClipToBounds="False" VerticalAlignment="Center">
                    <Button Name="btnConn1" AutomationProperties.AutomationId="btnConn1" 
                            Style="{DynamicResource advConnectionButton}" Content="Button" Margin="10,4,0,4" 
                            ToolTip="Open Connection Manager"
                            Command="{Binding Path=SavedConnectionCommand}"/>
                    <Button Name="btnConn2" AutomationProperties.AutomationId="btnConn2" 
                            Style="{DynamicResource AdvancedBtnStyle}" Content="Button" Margin="10,4,10,4"
                            ToolTip="Open Advanced Connection Manager"
                            Command="{Binding Path=AdvancedConnectionCommand}"/>
                </StackPanel>
            </Grid>
        </Border>
        <Border BorderBrush="#FFBFBFBF" BorderThickness="1,1,1,1" CornerRadius="3,3,3,3" Margin="5,5,0,5">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFF3F3F3" Offset="0"/>
                    <GradientStop Color="#FFEBF3F6" Offset="1"/>
                    <GradientStop Color="#FFE7E9EA" Offset="0.714"/>
                    <GradientStop Color="#FFD5DBDE" Offset="0.723"/>
                </LinearGradientBrush>
            </Border.Background>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="17"/>
                </Grid.RowDefinitions>
                <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="1" FontSize="11" Foreground="#FF494949" Text="Help" TextWrapping="Wrap"/>
                <StackPanel HorizontalAlignment="Stretch" Orientation="Horizontal" ClipToBounds="False">
                    <Button Name="btnAbout" AutomationProperties.AutomationId="btnAbout" 
                            Style="{DynamicResource AboutTridentButton}" Content="Button" 
                            ToolTip="About Trident" Margin="10,4,10,4"
                            Command="{Binding Path=AboutCommand}"/>
                </StackPanel>
            </Grid>
        </Border>
        <Border Margin="5,5,0,5" BorderBrush="#FFBFBFBF" BorderThickness="1,1,1,1" CornerRadius="3,3,3,3">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFF3F3F3" Offset="0"/>
                    <GradientStop Color="#FFEBF3F6" Offset="1"/>
                    <GradientStop Color="#FFE7E9EA" Offset="0.714"/>
                    <GradientStop Color="#FFD5DBDE" Offset="0.723"/>
                </LinearGradientBrush>
            </Border.Background>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="17"/>
                </Grid.RowDefinitions>
                <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="1" FontSize="11" Foreground="#FF494949" Text="Application" TextWrapping="Wrap"/>
                <StackPanel HorizontalAlignment="Stretch" Orientation="Horizontal" ClipToBounds="False">
                    <Button Name="btnRefresh" AutomationProperties.AutomationId="btnRefresh" Style="{DynamicResource ButtonStyleWfRefresh}" 
                            Content="Button" ToolTip="Refresh" Margin="10,4,0,4"
                            Command="{Binding Path=RefreshCommand}"/>                            
                    <Button Name="btnExit" AutomationProperties.AutomationId="btnExit" Style="{DynamicResource ButtonStylewfExit}" 
                            Content="Button" ToolTip="Exit" Margin="10,4,10,4"
                            Command="{Binding Path=ExitCommand}"/>
                </StackPanel>
            </Grid>
        </Border>
    </StackPanel>
</UserControl>
